package stream;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @PackageName: stream
 * @ClassName:
 * @author: wxc
 * @date 2021/5/25 demo2
 */
public class demo2 {
    public static void main(String[] args) {
        BigDecimal total = new BigDecimal(0L);
        for (int i = 0; i < 10; i++) {
            Long a = 10L;
            BigDecimal t = new BigDecimal(a);
            total= total.add(t);
        }
        System.out.println(total.toString());



    }
}
